<div>
    <?php echo TranslateUtil::t('Language') . ': '; ?>
    <?php foreach($languages as $language): ?>
        <?php if (ShortUtil::language() === $language->code): ?>
            <?php echo CHtml::link($language->name, array('//site/languages', 'lang' => $language->code), array('class' => 'active')); ?>
        <?php else: ?>
            <?php echo CHtml::link($language->name, array('//site/languages', 'lang' => $language->code)); ?>
        <?php endif; ?>
    <?php endforeach; ?>
</div>